<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: jetson-utils/gstCamera.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('gstCamera_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">gstCamera.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="gstCamera_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * copy of this software and associated documentation files (the &quot;Software&quot;),</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * to deal in the Software without restriction, including without limitation</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * the rights to use, copy, modify, merge, publish, distribute, sublicense,</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * and/or sell copies of the Software, and to permit persons to whom the</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Software is furnished to do so, subject to the following conditions:</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * The above copyright notice and this permission notice shall be included in</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * all copies or substantial portions of the Software.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * DEALINGS IN THE SOFTWARE.</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#ifndef __GSTREAMER_CAMERA_H__</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#define __GSTREAMER_CAMERA_H__</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;gst/gst.h&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="videoSource_8h.html">videoSource.h</a>&quot;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="gstBufferManager_8h.html">gstBufferManager.h</a>&quot;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment">// Forward declarations</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">struct </span>_GstAppSink;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="group__camera.html">   57</a></span>&#160;<span class="keyword">class </span><a class="code" href="group__camera.html#classgstCamera">gstCamera</a> : <span class="keyword">public</span> <a class="code" href="group__video.html#classvideoSource">videoSource</a></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;{</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <span class="keyword">static</span> <a class="code" href="group__camera.html#classgstCamera">gstCamera</a>* <a class="code" href="group__camera.html#acdad73a19658174d179845611f4e8b3f">Create</a>( <span class="keyword">const</span> <a class="code" href="group__video.html#structvideoOptions">videoOptions</a>&amp; options );</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <span class="keyword">static</span> <a class="code" href="group__camera.html#classgstCamera">gstCamera</a>* <a class="code" href="group__camera.html#acdad73a19658174d179845611f4e8b3f">Create</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* camera=NULL ); <span class="comment">// use MIPI CSI camera by default</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        <span class="keyword">static</span> <a class="code" href="group__camera.html#classgstCamera">gstCamera</a>* <a class="code" href="group__camera.html#acdad73a19658174d179845611f4e8b3f">Create</a>( uint32_t width, uint32_t height, <span class="keyword">const</span> <span class="keywordtype">char</span>* camera=NULL );</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        </div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        <a class="code" href="group__camera.html#a1df842937128e70d8f140c65e88e783c">~gstCamera</a>();</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160; </div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="group__camera.html#a28f4842c5648a253a1acee5276ac8486">Open</a>();</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="group__camera.html#a8798df5c10fff5ecbaf2598816c94f55">Close</a>();</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160; </div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="group__camera.html#a58201c92cd49636dd26e09b79099857f">Capture</a>( <span class="keywordtype">void</span>** image, <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format, uint64_t timeout=<a class="code" href="group__video.html#a8bc5b1b9a8bc15292890fef1028adbee">DEFAULT_TIMEOUT</a>, <span class="keywordtype">int</span>* status=NULL );</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160; </div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="group__camera.html#a958b61d55ce410cbf219a4c7dde721db">CaptureRGBA</a>( <span class="keywordtype">float</span>** image, uint64_t timeout=<a class="code" href="group__video.html#a8bc5b1b9a8bc15292890fef1028adbee">DEFAULT_TIMEOUT</a>, <span class="keywordtype">bool</span> zeroCopy=<span class="keyword">false</span> );</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160; </div>
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="group__camera.html#ad30c9e11ceda99507816e0715f34dd8a">  179</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="group__camera.html#ad30c9e11ceda99507816e0715f34dd8a">SetZeroCopy</a>(<span class="keywordtype">bool</span> zeroCopy)     { <a class="code" href="group__video.html#aa3c05686659fae747ff8709be2c9b445">mOptions</a>.<a class="code" href="group__video.html#afff91aa102908923622328e9f3ca3b83">zeroCopy</a> = zeroCopy; }</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160; </div>
<div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="group__camera.html#a40bdf4c4b7675e33bf670df07918e9c6">  184</a></span>&#160;        <span class="keyword">virtual</span> <span class="keyword">inline</span> uint32_t <a class="code" href="group__camera.html#a40bdf4c4b7675e33bf670df07918e9c6">GetType</a>()<span class="keyword"> const         </span>{ <span class="keywordflow">return</span> <a class="code" href="group__camera.html#a9e83835ff04fb08ecef14a67efb5c3d5">Type</a>; }</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160; </div>
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="group__camera.html#a9e83835ff04fb08ecef14a67efb5c3d5">  189</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">const</span> uint32_t <a class="code" href="group__camera.html#a9e83835ff04fb08ecef14a67efb5c3d5">Type</a> = (1 &lt;&lt; 0);</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160; </div>
<div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="group__camera.html#a211a6c9359a2f43054771f15e7628a5e">  194</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">const</span> uint32_t <a class="code" href="group__camera.html#a211a6c9359a2f43054771f15e7628a5e">DefaultWidth</a>  = 1280;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; </div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="group__camera.html#a42ab558b8ff9a0bf47b768c5122825b7">  199</a></span>&#160;        <span class="keyword">static</span> <span class="keyword">const</span> uint32_t <a class="code" href="group__camera.html#a42ab558b8ff9a0bf47b768c5122825b7">DefaultHeight</a> = 720;</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;        </div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">void</span> onEOS(_GstAppSink* sink, <span class="keywordtype">void</span>* user_data);</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;        <span class="keyword">static</span> GstFlowReturn onPreroll(_GstAppSink* sink, <span class="keywordtype">void</span>* user_data);</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;        <span class="keyword">static</span> GstFlowReturn onBuffer(_GstAppSink* sink, <span class="keywordtype">void</span>* user_data);</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160; </div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;        <a class="code" href="group__camera.html#classgstCamera">gstCamera</a>( <span class="keyword">const</span> <a class="code" href="group__video.html#structvideoOptions">videoOptions</a>&amp; options );</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160; </div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;        <span class="keywordtype">bool</span> init();</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;        <span class="keywordtype">bool</span> discover();</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;        <span class="keywordtype">bool</span> buildLaunchStr();</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160; </div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;        <span class="keywordtype">void</span> checkMsgBus();</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;        <span class="keywordtype">void</span> checkBuffer();</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;        </div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;        <span class="keywordtype">bool</span> matchCaps( GstCaps* caps );</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        <span class="keywordtype">bool</span> printCaps( GstCaps* caps );</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;        <span class="keywordtype">bool</span> parseCaps( GstStructure* caps, <a class="code" href="group__video.html#a99a95e988dcf46c0e9177abc7217cf8f">videoOptions::Codec</a>* codec, <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a>* format, uint32_t* width, uint32_t* height, <span class="keywordtype">float</span>* frameRate );</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;        </div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;        _GstBus*     mBus;</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        _GstAppSink* mAppSink;</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;        _GstElement* mPipeline;</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160; </div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;        std::string  mLaunchStr;</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;        <a class="code" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a>  mFormatYUV;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        </div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;        <a class="code" href="group__codec.html#classgstBufferManager">gstBufferManager</a>* mBufferManager;</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;};</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160; </div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="avideoSource_8h_html"><div class="ttname"><a href="videoSource_8h.html">videoSource.h</a></div></div>
<div class="ttc" id="agroup__camera_html_a958b61d55ce410cbf219a4c7dde721db"><div class="ttname"><a href="group__camera.html#a958b61d55ce410cbf219a4c7dde721db">gstCamera::CaptureRGBA</a></div><div class="ttdeci">bool CaptureRGBA(float **image, uint64_t timeout=DEFAULT_TIMEOUT, bool zeroCopy=false)</div><div class="ttdoc">Capture the next image frame from the camera and convert it to float4 RGBA format,...</div></div>
<div class="ttc" id="agroup__camera_html_a8798df5c10fff5ecbaf2598816c94f55"><div class="ttname"><a href="group__camera.html#a8798df5c10fff5ecbaf2598816c94f55">gstCamera::Close</a></div><div class="ttdeci">virtual void Close()</div><div class="ttdoc">Stop streaming the camera.</div></div>
<div class="ttc" id="agroup__camera_html_acdad73a19658174d179845611f4e8b3f"><div class="ttname"><a href="group__camera.html#acdad73a19658174d179845611f4e8b3f">gstCamera::Create</a></div><div class="ttdeci">static gstCamera * Create(const videoOptions &amp;options)</div><div class="ttdoc">Create a MIPI CSI or V4L2 camera device.</div></div>
<div class="ttc" id="agroup__codec_html_classgstBufferManager"><div class="ttname"><a href="group__codec.html#classgstBufferManager">gstBufferManager</a></div><div class="ttdoc">gstBufferManager recieves GStreamer buffers from appsink elements and unpacks/maps them into CUDA add...</div><div class="ttdef"><b>Definition:</b> gstBufferManager.h:61</div></div>
<div class="ttc" id="agroup__camera_html_classgstCamera"><div class="ttname"><a href="group__camera.html#classgstCamera">gstCamera</a></div><div class="ttdoc">MIPI CSI and V4L2 camera capture using GStreamer and nvarguscamerasrc or v4l2src elements.</div><div class="ttdef"><b>Definition:</b> gstCamera.h:57</div></div>
<div class="ttc" id="agroup__camera_html_ad30c9e11ceda99507816e0715f34dd8a"><div class="ttname"><a href="group__camera.html#ad30c9e11ceda99507816e0715f34dd8a">gstCamera::SetZeroCopy</a></div><div class="ttdeci">void SetZeroCopy(bool zeroCopy)</div><div class="ttdoc">Set whether converted RGB(A) images should use ZeroCopy buffer allocation.</div><div class="ttdef"><b>Definition:</b> gstCamera.h:179</div></div>
<div class="ttc" id="agstBufferManager_8h_html"><div class="ttname"><a href="gstBufferManager_8h.html">gstBufferManager.h</a></div></div>
<div class="ttc" id="agroup__camera_html_a211a6c9359a2f43054771f15e7628a5e"><div class="ttname"><a href="group__camera.html#a211a6c9359a2f43054771f15e7628a5e">gstCamera::DefaultWidth</a></div><div class="ttdeci">static const uint32_t DefaultWidth</div><div class="ttdoc">Default camera width, unless otherwise specified during Create()</div><div class="ttdef"><b>Definition:</b> gstCamera.h:194</div></div>
<div class="ttc" id="agroup__video_html_a99a95e988dcf46c0e9177abc7217cf8f"><div class="ttname"><a href="group__video.html#a99a95e988dcf46c0e9177abc7217cf8f">videoOptions::Codec</a></div><div class="ttdeci">Codec</div><div class="ttdoc">Video codecs.</div><div class="ttdef"><b>Definition:</b> videoOptions.h:198</div></div>
<div class="ttc" id="agroup__camera_html_a1df842937128e70d8f140c65e88e783c"><div class="ttname"><a href="group__camera.html#a1df842937128e70d8f140c65e88e783c">gstCamera::~gstCamera</a></div><div class="ttdeci">~gstCamera()</div><div class="ttdoc">Release the camera interface and resources.</div></div>
<div class="ttc" id="agroup__camera_html_a58201c92cd49636dd26e09b79099857f"><div class="ttname"><a href="group__camera.html#a58201c92cd49636dd26e09b79099857f">gstCamera::Capture</a></div><div class="ttdeci">virtual bool Capture(void **image, imageFormat format, uint64_t timeout=DEFAULT_TIMEOUT, int *status=NULL)</div><div class="ttdoc">Capture the next image frame from the camera.</div></div>
<div class="ttc" id="agroup__video_html_aa3c05686659fae747ff8709be2c9b445"><div class="ttname"><a href="group__video.html#aa3c05686659fae747ff8709be2c9b445">videoSource::mOptions</a></div><div class="ttdeci">videoOptions mOptions</div><div class="ttdef"><b>Definition:</b> videoSource.h:378</div></div>
<div class="ttc" id="agroup__video_html_afff91aa102908923622328e9f3ca3b83"><div class="ttname"><a href="group__video.html#afff91aa102908923622328e9f3ca3b83">videoOptions::zeroCopy</a></div><div class="ttdeci">bool zeroCopy</div><div class="ttdoc">If true, indicates the buffers are allocated in zeroCopy memory that is mapped to both the CPU and GP...</div><div class="ttdef"><b>Definition:</b> videoOptions.h:104</div></div>
<div class="ttc" id="agroup__camera_html_a40bdf4c4b7675e33bf670df07918e9c6"><div class="ttname"><a href="group__camera.html#a40bdf4c4b7675e33bf670df07918e9c6">gstCamera::GetType</a></div><div class="ttdeci">virtual uint32_t GetType() const</div><div class="ttdoc">Return the interface type (gstCamera::Type)</div><div class="ttdef"><b>Definition:</b> gstCamera.h:184</div></div>
<div class="ttc" id="agroup__video_html_a8bc5b1b9a8bc15292890fef1028adbee"><div class="ttname"><a href="group__video.html#a8bc5b1b9a8bc15292890fef1028adbee">videoSource::DEFAULT_TIMEOUT</a></div><div class="ttdeci">static const uint64_t DEFAULT_TIMEOUT</div><div class="ttdoc">The default Capture timeout (1000ms)</div><div class="ttdef"><b>Definition:</b> videoSource.h:371</div></div>
<div class="ttc" id="agroup__camera_html_a42ab558b8ff9a0bf47b768c5122825b7"><div class="ttname"><a href="group__camera.html#a42ab558b8ff9a0bf47b768c5122825b7">gstCamera::DefaultHeight</a></div><div class="ttdeci">static const uint32_t DefaultHeight</div><div class="ttdoc">Default camera height, unless otherwise specified during Create()</div><div class="ttdef"><b>Definition:</b> gstCamera.h:199</div></div>
<div class="ttc" id="agroup__video_html_structvideoOptions"><div class="ttname"><a href="group__video.html#structvideoOptions">videoOptions</a></div><div class="ttdoc">The videoOptions struct contains common settings that are used to configure and query videoSource and...</div><div class="ttdef"><b>Definition:</b> videoOptions.h:37</div></div>
<div class="ttc" id="agroup__camera_html_a28f4842c5648a253a1acee5276ac8486"><div class="ttname"><a href="group__camera.html#a28f4842c5648a253a1acee5276ac8486">gstCamera::Open</a></div><div class="ttdeci">virtual bool Open()</div><div class="ttdoc">Begin streaming the camera.</div></div>
<div class="ttc" id="agroup__camera_html_a9e83835ff04fb08ecef14a67efb5c3d5"><div class="ttname"><a href="group__camera.html#a9e83835ff04fb08ecef14a67efb5c3d5">gstCamera::Type</a></div><div class="ttdeci">static const uint32_t Type</div><div class="ttdoc">Unique type identifier of gstCamera class.</div><div class="ttdef"><b>Definition:</b> gstCamera.h:189</div></div>
<div class="ttc" id="agroup__imageFormat_html_ga931c48e08f361637d093355d64583406"><div class="ttname"><a href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a></div><div class="ttdeci">imageFormat</div><div class="ttdoc">The imageFormat enum is used to identify the pixel format and colorspace of an image.</div><div class="ttdef"><b>Definition:</b> imageFormat.h:49</div></div>
<div class="ttc" id="agroup__video_html_classvideoSource"><div class="ttname"><a href="group__video.html#classvideoSource">videoSource</a></div><div class="ttdoc">The videoSource API is for capturing frames from video input devices such as MIPI CSI cameras,...</div><div class="ttdef"><b>Definition:</b> videoSource.h:118</div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_54a0acf6da04fe2ed9410b4c6369bc5d.html">jetson-utils</a></li><li class="navelem"><a class="el" href="gstCamera_8h.html">gstCamera.h</a></li>
    <li class="footer">Generated on Tue Mar 28 2023 14:27:58 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
